package ch12;

/**
 * Created by 春旺 on 2017/9/8.
 */
public class PrintSum {
    public void printsum(int count) {

        int sum = 0;
        for (int i = 0; i < count; i++)
            sum += i;
        System.out.println(sum);

    }
}